package com.qf.thread;

public class MainTest {
	public static void main(String[] args) {
	
		//1.接口实现创建线程
		//重写了Runnable里的run方法
		Runnable runnable = new RunnableTest();
		
		//Thread实现了Runnable接口
		//创建线程
		Thread thread = new Thread(runnable);
		
		//普通方法调用用run
		//runnable.run();
		
		//启动线程用start方法
		thread.start();
		
		
		
	}

}
